@extends('layouts.admin')

@section('content')
    <form action="{{url('admin/store/'.$mendata->menid)}}" method="post">
        {{csrf_field()}}
        <input type="hidden" name="_method" value="put">
        <div class="alert alert-success">添加门店</div>
        @if(count($errors)>0)
            <div class="mark">
                @if(is_object($errors))
                    @foreach($errors->all() as $v)
                        <p>{{$v}}</p>
                    @endforeach
                @else
                    <p>{{$errors}}</p>
                @endif
            </div>
        @endif
        <div class="form-group">
            <label for="exampleInputEmail1">门店名称</label>
            <input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入门店名称"  name="mname" value="{{$mendata->mname}}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">门店地址</label>
            <input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入门店地址"  name="m_address" value="{{$mendata->m_address}}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">所属城市</label>
            <select name="zc_city_ctid" class="form-control">
                @foreach($citydata as $v)
                    <option value="{{$v->ctid}}"
                            @if($v->ctid == $mendata->zc_city_ctid)
                            selected
                            @endif
                    >{{$v->cityname}}</option>
                @endforeach
            </select>
        </div>
        {{--<div class="form-group">--}}
        {{--<label for="exampleInputEmail1">缩略图</label>--}}
        {{--<input id="exampleInputEmail1" type="file"  name="">--}}
        {{--</div>--}}


        <div class="form-group">
            <label for="exampleInputEmail1">营业时间</label>
            <input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入营业时间"  name="businessTime" value="{{$mendata->businessTime}}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">公交路线</label>
            <textarea name="Busroute" rows="5" cols=""  class="form-control" placeholder="请输入公交路线">{{$mendata->Busroute}}</textarea>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">门店评价</label>
            <textarea name="evaluate" rows="5" cols=""  class="form-control" placeholder="请输入门店评价">{{$mendata->evaluate}}</textarea>
        </div>

        <button class="btn btn-primary btn-block" type="submit"> 确定 </button>


    </form>

@endsection






{{--<!DOCTYPE html>--}}
{{--<html>--}}
{{--<head>--}}
    {{--<meta charset="utf-8">--}}
    {{--<title></title>--}}
    {{--<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">--}}
    {{--<!-- Loading Bootstrap -->--}}
    {{--<link href="{{asset('resources/views/admin/Flat/dist/css/vendor/bootstrap.min.css')}}" rel="stylesheet">--}}
    {{--<!-- Loading Flat UI -->--}}
    {{--<link href="{{asset('resources/views/admin/Flat/dist/css/flat-ui.css')}}" rel="stylesheet">--}}
    {{--<link href="{{asset('resources/views/admin/Flat/docs/assets/css/demo.css')}}" rel="stylesheet">--}}
    {{--<link rel="shortcut icon" href="{{asset('resources/views/admin/Flat/img/favicon.ico')}}">--}}
    {{--<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->--}}
    {{--<!--[if lt IE 9]>--}}
    {{--<script src="dist/js/vendor/html5shiv.js"></script>--}}
    {{--<script src="dist/js/vendor/respond.min.js"></script>--}}
    {{--<![endif]-->--}}
{{--</head>--}}
{{--<body>--}}



{{--</body>--}}
{{--</html>--}}
